package com.sun.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sun.pojo.PmsBrand;
import com.sun.mapper.PmsBrandMapper;
import com.sun.service.IPmsBrandService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 品牌表 服务实现类
 * </p>
 *
 * @author 妙妙屋
 * @since 2021-12-29
 */
@Service
public class PmsBrandServiceImpl extends ServiceImpl<PmsBrandMapper, PmsBrand> implements IPmsBrandService {
    @Override
    public IPage list(Long pageNum, Long pageSize) {
        Page<PmsBrand> p = new Page<>(pageNum, pageSize);
        QueryWrapper<PmsBrand> qr = new QueryWrapper<>();
        IPage<PmsBrand> page = this.baseMapper.selectPage(p, qr);
        return page;
    }
}
